
      Printt3.dllIt is a single thread Libaray,support serial port,infrared and Bluetooth ports
    
      DLL provide following functions:

      1. BOOL Open(int port);
      2. BOOL PortClose();      
      3. BOOL SendData(CString str); 
      4. void PrintHelp(void); 
      5. BOOL SetFont(int width,int height,int underline,int direction,white).
    /****************************************************************************************
    *       Function: BOOL Open(int port)                                                   *
    *                                                                                       *
    *         Action: Open the bluetooth port                                               *
    *                                                                                       *
    *      Parameter:                                                                       *
    *                 port : COM number(1,2,3...,255)                                       *
    *                                                                                       *
    *   Return Value:                                                                       *
    *                 Success: TRUE                                                         *
    *                 Failure : FALSE                                                       *
    *                                                                                       *
    ****************************************************************************************/
    


    /****************************************************************************************
    *       Function: BOOL PortClose()                                                      *
    *                                                                                       *
    *         Action: Close Port                                                            *
    *                                                                                       *
    *      Parameter:                                                                       *
    *                 Void                                                                  *
    *                                                                                       *
    *   Return Value:                                                                       *
    *                 Success : TRUE                                                        *
    *                 Failure : FALSE                                                       *
    ****************************************************************************************/

 

    /****************************************************************************************
    *       Function: BOOL SendData(CString str)                                            *
    *                                                                                       *
    *         Action: Send character string to printer                                      *
    *                                                                                       *
    *      Parameter:                                                                       *
    *                 str : the character string                                            *
    *                                                                                       *
    *   Return Value:                                                                       *
    *                 Success : TRUE                                                        *
    *                 Failure : FALSE                                                       *
    *                                                                                       *
    ****************************************************************************************/



    /****************************************************************************************
    *      Function: BOOL SetFont(int width,int height,int underline,int direction,white)   *
    *                                                                                       *   
    *        Action:    Set font and format                                                 *
    *                                                                                       *
    *    Parameters:                                                                        *
    *                width : the width of characters,among 1,2,3,4                          *
    *                height : the height of characters,among 1,2,3,4                        *
    *                underline : set underline                                              *
    *                            0 : without underline                                      * 
    *                            1 : with underline                                         * 
    *                direction : print direction                                            *
    *                            0 : print with normal directin                             *
    *                            1 : print right-about                                      *
    *                white : re-white                                                       *
    *                            0 : print witout re-white                                  *
    *                            1 : pirnt with re-white                                    *
    *                                                                                       *
    *  Return Value:                                                                        *
    *                Success : TRUE                                                         *
    *                Failure : FALSE                                                        *
    *                                                                                       *
    ****************************************************************************************/



    /****************************************************************************************
    *       Function: void PrintHelp(void)                                                  *
    *                                                                                       * 
    *         Action: Use help of DLL                                                       *
    *                                                                                       *
    *      Parameter:                                                                       *
    *                 Void                                                                  *
    *                                                                                       * 
    *   Return Value:                                                                       *
    *                 Void                                                                  *
    *                                                                                       *
    ****************************************************************************************/

